<%--
    Document   : index
    Created on : Mar 10, 2014, 10:54:45 PM
    Author     : Anton Strack
--%>
<div class="csd_content_form">
    <form method="POST" action="${config.getPath()}">
        <div class="form-group">
            <label class="form-control" for="postName">Name:</label>
            <input class="form-control" id="postName" name="postName" required="" autofocus="" type="text"><br />
            <label class="form-control" for="postDescription">Description:</label>
            <textarea class="form-control" id="postDescription" name="postDescription" required="" rows="3"></textarea><br />
            <label class="form-control" for="postBody">Detailed Profile</label>
            <textarea class="form-control ckeditor" id="postBody" name="postBody" required="" rows="30"></textarea><br />
            <label class="form-control" for="postState">Initial Post State:</label>
            <select class="form-control" id="postState" name="postState">
                <c:forEach items="${stateIds}" var="state" >
                    <c:choose>
                        <c:when test="${state.name == 'Draft'}">
                            <option value="${state.id}" selected="">${state.name}</option>
                        </c:when>
                        <c:otherwise>
                            <option value="${state.id}">${state.name}</option>
                        </c:otherwise>

                    </c:choose>
                </c:forEach>
            </select>
        </div>
        <button class="btn btn-primary" type="submit" name="formSubmit" id="formSubmit" value="create-character">Save Character</button>
    </form>
</div>

